# !usr/bin/env python
# -*- coding:utf-8 _*-
"""
@Author:张广勤
@Web site: https://www.tunan.wang
@Github:www.github.com
 
@File:findkey.py
@Time:2022/3/10 8:27

@Motto:不积跬步无以至千里，不积小流无以成江海！
"""
item='企业一套表统计调查制度(2021)'
with open('..\zdmulu.csv', 'r', encoding='u8') as f:
    str1 = f.read()
    dict1 = eval(str1)
    print(dict1)
    zdcode = list({k for k, v in dict1.items() if v == item})[0]
    print(zdcode)